echo off
echo Copy include files
xcopy .\pgl\*.* .\Distribution\src\pgl\ /S
del .\Distribution\src\pgl\markup\markup.h

echo Copy Algotools
mkdir .\Distribution\src\Algotools
copy .\Algotools\* .\Distribution\src\Algotools
del .\Distribution\src\Algotools\*.vspscc

echo Copy Bin
mkdir .\Distribution\src\bin
copy .\bin\*.jpg .\Distribution\src\bin
mkdir .\Distribution\src\binnet
copy .\binnet\*.jpg .\Distribution\src\binnet

echo Copy IGfx
mkdir .\Distribution\src\IGfx
copy .\IGfx\* .\Distribution\src\IGfx
del .\Distribution\src\IGfx\*.vspscc

echo Copy zlib
mkdir .\Distribution\src\zlib
copy .\zlib\* .\Distribution\src\zlib
del .\Distribution\src\zlib\*.vspscc

echo Copy Markup Dll
mkdir .\Distribution\src\MarkupDll
copy .\MarkupDll\* .\Distribution\src\MarkupDll
mkdir .\Distribution\src\MarkupDll\res
copy .\MarkupDll\res\* .\Distribution\src\MarkupDll\res
del .\Distribution\src\MarkupDll\Markup.cpp
del .\Distribution\src\MarkupDll\*.vspscc


echo NewmenuLib
mkdir .\Distribution\src\NewMenuLib
copy .\NewMenuLib\* .\Distribution\src\NewMenuLib
del .\Distribution\src\NewMenuLib\*.vspscc

echo Copy PGLCore
mkdir .\Distribution\src\PGLCore
copy .\PGLCore\* .\Distribution\src\PGLCore
mkdir .\Distribution\src\PGLCore\res
copy .\PGLCore\res\* .\Distribution\src\PGLCore\res
del .\Distribution\src\PGLCore\*.vspscc

echo Copy PGLMFC
mkdir .\Distribution\src\PGLMFC
copy .\PGLMFC\* .\Distribution\src\PGLMFC
mkdir .\Distribution\src\PGLMFC\res
copy .\PGLMFC\res\* .\Distribution\src\PGLMFC\res
del .\Distribution\src\PGLMFC\*.vspscc

echo Copy PGLNet
mkdir .\Distribution\src\PGLNet
copy .\PGLNet\* .\Distribution\src\PGLNet
del .\Distribution\src\PGLNet\*.vspscc

echo Copy PGLNetTest
mkdir .\Distribution\src\PGLNetTest
copy .\PGLNetTest\* .\Distribution\src\PGLNetTest
del .\Distribution\src\PGLNetTest\*.vspscc

echo Copy PGLISAPI
mkdir .\Distribution\src\PGLISAPIDemo
copy .\PGLISAPIDemo\* .\Distribution\src\PGLISAPIDemo
del .\Distribution\src\PGLISAPIDemo\*.vspscc

echo Copy PGLLua
mkdir .\Distribution\src\PGLLua
copy .\PGLLua\* .\Distribution\src\PGLLua
mkdir .\Distribution\src\PGLLua\res
copy .\PGLLua\res\* .\Distribution\src\PGLLua\res

echo Copy PGLX
mkdir .\Distribution\src\PGLX
copy .\PGLX\* .\Distribution\src\PGLX
mkdir .\Distribution\src\PGLX\Hlp
copy .\PGLX\Hlp\* .\Distribution\src\PGLX\Hlp
del .\Distribution\src\PGLX\*.vspscc

echo Copy PGLServer
mkdir .\Distribution\src\PGLServer
copy .\PGLServer\* .\Distribution\src\PGLServer
del .\Distribution\src\Server\*.vspscc

echo Copy PGLSwig
mkdir .\Distribution\src\PGLSwig
copy .\PGLSwig\* .\Distribution\src\PGLSwig

echo Copy TestPGL
mkdir .\Distribution\src\TestPGL
copy .\TestPGL\* .\Distribution\src\TestPGL
mkdir .\Distribution\src\TestPGL\res
copy .\TestPGL\res\* .\Distribution\src\TestPGL\res
del .\Distribution\src\TestPGL\*.vspscc

echo Copy PGLViewer
mkdir .\Distribution\src\PGLViewer
copy .\PGLViewer\* .\Distribution\src\PGLViewer
mkdir .\Distribution\src\PGLViewer\res
copy .\PGLViewer\res\* .\Distribution\src\PGLViewer\res
del .\Distribution\src\PGLViewer\*.vspscc

echo Copy PGLShell
mkdir .\Distribution\src\PGLShell
copy .\PGLShell\* .\Distribution\src\PGLShell
del .\Distribution\src\PGLShell\*.vspscc

echo Copy project
copy .\* .\Distribution\src\
del .\Distribution\src\*.vssscc
del .\Distribution\src\*.ncb


pause